﻿<Window x:Class="Mar3ek.ColorHatTimeTracker.AnnotationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:colorHatTimeTracker="clr-namespace:Mar3ek.ColorHatTimeTracker"
        Title="Colorhat - Annotate Time Segment" Height="380.4" Width="434.4" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" WindowStyle="ToolWindow" Topmost="True">
    <Window.DataContext>
        <colorHatTimeTracker:AnnotationViewModel />
    </Window.DataContext>
    <Grid>
        <Label Content="Segment start:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
        <Label Content="Segment end:" HorizontalAlignment="Left" Margin="10,41,0,0" VerticalAlignment="Top"/>
        <Label Content="Customer:" HorizontalAlignment="Left" Margin="10,103,0,0" VerticalAlignment="Top"/>
        <Label Content="Service:" HorizontalAlignment="Left" Margin="10,134,0,0" VerticalAlignment="Top"/>
        <Label Content="Annotation:" HorizontalAlignment="Left" Margin="10,165,0,0" VerticalAlignment="Top"/>
        <TextBox Margin="10,196,10,34" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Annotation}"/>
        
        <Button Name="OkButton" Content="OK" HorizontalAlignment="Right" Margin="0,0,9.6,10.2" VerticalAlignment="Bottom" Width="75" Click="OkButtonClick"/>
        <TextBlock HorizontalAlignment="Right" Margin="0,15,10,0" TextWrapping="Wrap" Text="{Binding SegmentStart, StringFormat={}{0:HH:mm:ss}}" VerticalAlignment="Top"/>
        <Label Content="Duration:" HorizontalAlignment="Left" Margin="10,72,0,0" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Right" Margin="0,46,9,0" TextWrapping="Wrap" Text="{Binding SegmentEnd, StringFormat=\{0:HH:mm:ss\}}" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Right" Margin="0,77,10,0" TextWrapping="Wrap" Text="{Binding Duration, StringFormat=\{0:HH:mm:ss\}}" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Right" Margin="0,108,9,0" TextWrapping="Wrap" Text="{Binding Client, StringFormat=\{0:HH:mm:ss\}}" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Right" Margin="0,139,9,0" TextWrapping="Wrap" Text="{Binding Service, StringFormat=\{0:HH:mm:ss\}}" VerticalAlignment="Top"/>
        <Button Name="CancelButton" Content="Cancel" HorizontalAlignment="Left" Margin="7,0,0,10" Width="75" Click="CancelButtonClick" Height="19" VerticalAlignment="Bottom"/>

    </Grid>
</Window>
